package snafu.implementation.objects.banana;

import java.awt.Color;

import snafu.framework.objects.WorldObjectItself;
import snafu.framework.states.StateItself;
import snafu.framework.view.Access;
import snafu.implementation.states.literals.collect.CollectableLiteralItself;
import snafu.implementation.states.literals.color.ColorLiteralItself;
import snafu.implementation.states.literals.depth.DepthLiteralItself;

public class BananaItself extends WorldObjectItself<BananaView> implements Banana {
	@Override
	public StateItself getInitialState() {
		StateItself state = new StateItself();
		state.addLiteral(new ColorLiteralItself(new Color(255, 221, 3), Access.PUBLIC));
		state.addLiteral(new DepthLiteralItself(1 , Access.PUBLIC));
		state.addLiteral(new CollectableLiteralItself(true, Access.PUBLIC));
		
		return state;
	}
	
	@Override
	public BananaView createView(Access access) {
		return new BananaView(access, this);
	}
	
	@Override
	public String output() {
		return "Banana";
	}
}
